package com.dbsop.controller;

import com.dbsop.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {

    @Autowired
    StudentService studentService;

    /**
     * 测试数据编写
     * @return
     */
    @RequestMapping("/testData")
    public Object testData(){
        studentService.testData();
        return null;
    }


    /**
     * list数据查询
     * @return
     */
    @RequestMapping("/list")
    public Object list(){
        studentService.list();
        return null;
    }

    @RequestMapping("/page")
    public Object page(){
        studentService.page();
        return "";
    }
}
